<%@ page import="com.cmy.pojo.Person" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
//    Person person = new Person();
//    person.setId();
//    person.setName();
//    person.setAge();
//    person.setAddress();
%>
<jsp:useBean id="person" class="com.cmy.pojo.Person" scope="page"/>
<jsp:setProperty name="person" property="id" value="1"/>
<jsp:setProperty name="person" property="name" value="void"/>
<jsp:setProperty name="person" property="age" value="20"/>
<jsp:setProperty name="person" property="address" value="福建"/>

id:<jsp:getProperty name="person" property="id"/>
姓名:<jsp:getProperty name="person" property="name"/>
年龄:<jsp:getProperty name="person" property="age"/>
地址:<jsp:getProperty name="person" property="address"/>
</body>
</html>
